<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<head>
<script type="text/javascript"
	src="<c:url value='/easyui/plugins/jquery.squarebutton.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/selectmap.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/mselectmap.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/selectstzd.js'/>"></script>
	
<script type="text/javascript">
	function hiderollmsg() {
		$('#mainlayout').layout('remove','north');
	}

	function showrollmsg(msgs) {
		var region = 'north';
		var options = {
			region: region
		};
		options.height = 37;
		options.border = false;	
		options.bodyCls = "rollmsgpanel";
		options.content = msgs;
		$('#mainlayout').layout('add',options);

	}
	

	function open3(url,title){
		$('#topw').window({title:title,content: '<iframe scrolling="no" frameborder="0"  src="'
			+ url
			+ '" style="width:100%;height:100%"></iframe>'}).window('open');
	}
	
	function open2(url,title){
		$('#w').window({title:title,content: '<iframe scrolling="yes" frameborder="0"  src="'
			+ url
			+ '" style="width:100%;height:100%"></iframe>'}).window('open');
	}
	
	function open1(url, title) {
		if ($('#tt').tabs('exists', title)) {
			$('#tt').tabs('select', title);
		} else {
			var guid = Guid.NewGuid().ToString("N");
			if (url.indexOf("?") == -1)
				url += "?r=" + guid;
			else 
				url += "&r=" + guid;
			$('#tt')
					.tabs(
							'add',
							{
								title : title,
								content : '<iframe scrolling="no" frameborder="0"  src="'
										+ url
										+ '" style="width:100%;height:100%"></iframe>',
								closable : true
							});
		}
	}
	
	$(function()
    {
		hiderollmsg();
		var msgs = "";
		<c:forEach items="${infos}" var="info" varStatus="status">
		msgs += "<a style=\"text-decoration: NONE\" href=\"javascript:void(0);\" onclick=\"open2('<c:url value='/read/sysinfo/show?ids=${info.id}'/>','公告详细内容');\"><span style=\"color: #000000\">【${info.sysinfo_type}】${info.rollmsg}</span></a>&nbsp;&nbsp;";		
		</c:forEach>
		if (msgs != ""){		
			msgs = "<marquee width=100% scrollamount=3 onmouseover=this.stop() onmouseout=this.start()>"+ msgs +"</marquee>";
			showrollmsg(msgs);
		}
		
		
		var eclock = new EClock();
		open3('<c:url value="/read/todayinfo/index"/>','今天是 ' + eclock.toDetailString());
    });
</script>
</head>
<body>
	<div class="easyui-layout" fit="true">
		<c:if test="${cfgs['menulayout'] == 'default'}">
			<div region="west" title="菜单" style="width: 
			<c:if test="${cfgs['btntype'] == 'rectangle'}">
			169px;
			</c:if>
			<c:if test="${cfgs['btntype'] == 'square'}">
			105px;
			</c:if>
			<c:if test="${cfgs['btntype'] == 'plain'}">
			125px;
			</c:if>
			" border="false">
				<jsp:include page="_left.jsp"></jsp:include>
		</c:if>
		<c:if test="${cfgs['menulayout'] == 'topbottom'}">
			<div region="north"
				<c:if test="${cfgs['btntype'] == 'plain'}">
									style="height:77px;"
									</c:if>
				<c:if test="${cfgs['btntype'] == 'square'}">
									style="height:120px;"
									</c:if>
				<c:if test="${cfgs['btntype'] == 'rectangle'}">
									style="height:120px;"
									</c:if>					
				border="true">
				<jsp:include page="_top.jsp"></jsp:include>
		</c:if>


	</div>
	<div region="center" border="false">

		<div id="mainlayout" class="easyui-layout" fit="true" border="false">
			<div id="rollmsgdiv" region="north"
				style="height: 37px; overflow: hidden; padding: 10px; background: #FFFFC7;"
				border="false">
				
			</div>
			<div region="center" border="false">
				<div id="tt" class="easyui-tabs" tabPosition="bottom" fit="true"
					border="false" plain="true">
					<div title="首页"
						style="text-align: center; overflow: hidden">
						<div id="content" style="background: #fff">
						   
									<img src="<c:url value='/home/showbackpic'/>" width="100%"
								height="100%" />
											    
							
								
						</div>
					</div>
				</div>
			</div>
		</div>




	</div>
	</div>

    <div id="w" class="easyui-window"  data-options="modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false,maximized:true" style="overflow: hidden; ">
		
	</div>
	
	<div id="topw" class="easyui-window"  data-options="modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false" style="width:800px;height:480px;overflow: hidden; ">
		
	</div>

</body>
